import request from '@/utils/request'

// 查询项目产品列表
export function listProjectProduct(query) {
  return request({
    url: '/gs/projectProduct/list',
    method: 'get',
    params: query
  })
}

// 查询项目产品详细
export function getProjectProduct(id) {
  return request({
    url: '/gs/projectProduct/' + id,
    method: 'get'
  })
}

// 新增项目产品
export function addProjectProduct(data) {
  return request({
    url: '/gs/projectProduct',
    method: 'post',
    data: data
  })
}

// 修改项目产品
export function updateProjectProduct(data) {
  return request({
    url: '/gs/projectProduct',
    method: 'put',
    data: data
  })
}

// 删除项目产品
export function delProjectProduct(id) {
  return request({
    url: '/gs/projectProduct/' + id,
    method: 'delete'
  })
}
